<template>
   {{ count }}   ---{{ doubleCount }}
   <button @click="useCount.increment" >++</button>
</template>

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { useCounterStore } from '@/stores/counter';
const useCount=useCounterStore();
const {count,doubleCount}=storeToRefs(useCount);

</script>

<style scoped>

</style>